package com.project.biz;

import com.baomidou.mybatisplus.extension.service.IService;
import com.project.entity.CmsRecoveryMemberEva;
import com.project.pojo.model.RecoveryMemberEvaModel;

/**
 * @Description: 回收员评论业务层接口类
 * @Author: zhuchi
 * @CreateDate: 2020/11/16 17:07
 * @Version: 1.0
 */
public interface CmsRecoveryMemberEvaBiz extends IService<CmsRecoveryMemberEva> {

    /**
     * 添加回收员评论
     * @param recoveryMemberEvaModel
     * @param recoveryMemberId 回收员ID
     * @param userId 评论用户ID
     * @return
     */
    int addRecoveryMemberEva(RecoveryMemberEvaModel recoveryMemberEvaModel, Long recoveryMemberId, Long userId);

    /**
     * 根据回收订单获取评论信息
     * @param recoveryOrderId
     * @return
     */
    CmsRecoveryMemberEva getEvaByRecoveryOrderId(Long recoveryOrderId);

    /**
     * 获取回收员平均评分
     * @param recoveryMemberId
     * @return
     */
    int getRecoverMemberAvgScore(Long recoveryMemberId);

}
